<?php

/*
	[ English learning assistant system]
	NAME:admin_model
*/
if (!defined('IN_ELS'))
{
    die('Hacking attempt');
}

class registerbase extends base {
	function registerbase() {
		$this->base();
	}

	function upUser($table,$data,$where)
	{
		$returnData = $this->dbUpdate($table,$data,$where);
		return $returnData;
		
	}
	function getUserInfo($user_id)
	{
		$sql = "SELECT * from gnw_user where id=".$user_id;
		$data = $this->db->fetch_first($sql);
		return $data;
	}


}
?>